Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

dequeue

container.Binary_Heap_Queue.dequeue

get and remove the element with highest priority

this is the element with either minimum or maximum value
depending on the chosen queue/comparator

Time complexity: amortized O(log n) or O(log n) when staying within min_size
Postcondition
post then debug 5 : check_heap_property
0.098dev (GIT hash b44352b4c68decbc58a097b291a1c8f3a5a05486)
last changed: 2026-07-03